package java56_5;

import java.util.Scanner;

public class Square {

	public static void main(String[] args) {
		// 输出长方形
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入正方形的高度：");
		int h = 0;
		do {
			h = sc.nextInt();
		} while (h <= 0);
		// 外层控制行数
		// 内层控制列数
		for (int i = 1; i <= h; i++) {
			for (int j = 1; j <= h; j++) {
				System.out.print("* ");
			}
			System.out.println();
		}
	}

}
